package com.hongyue.Object2;

public class Demo {
    public static void main(String[] args) {
        XueSheng xs = new XueSheng();
        xs.setXingMing("张三");
        xs.setXingBie("男");
        System.out.println("xs = " + xs);
        xs.setNianLing("20");
        XueSheng xs1 = new XueSheng();
        xs1.setXingMing("张三");
        xs1.setXingBie("男");
        xs1.setNianLing("20");
        System.out.println("xs1 = " + xs1);
        System.out.println(xs.equals(xs1));
    }
}
